export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/login',
          },
        ],
      },
    ],
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/admin',
    name: 'admin',
    icon: 'crown',
    access: 'canAdmin',
    component: './Admin',
    routes: [
      {
        path: '/admin/sub-page',
        name: 'sub-page',
        icon: 'smile',
        component: './Welcome',
      },
    ],
  },
  {
    path: '/',
    // redirect: '/welcome',
    redirect: '/demand/demand/0',
  },
  {
    path: '/index',
    // redirect: '/welcome',
    redirect: '/report/report',
  },
  {
    name: '菜单管理',
    icon: 'smile',
    path: '/sys/menu',
    component: './sys/MenuList',
  },
  {
    name: '菜单编辑',
    icon: 'smile',
    path: '/sys/menu/form/:id',
    component: './sys/MenuList/form',
  },
  {
    name: '用户管理',
    icon: 'smile',
    path: '/sys/user',
    component: './sys/UserList',
  },
  {
    name: '角色管理',
    icon: 'smile',
    path: '/sys/role',
    component: './sys/RoleList',
  },
  {
    name: '角色编辑',
    icon: 'smile',
    path: '/sys/role/form/:id',
    component: './sys/RoleList/form',
  },
  {
    name: '报表管理',
    icon: 'smile',
    path: '/report/report',
    component: './report/ReportList',
  },
  {
    name: '报表详情',
    icon: 'smile',
    path: '/report/report/details/:tableConfigId/:name/:reportId',
    component: './report/ReportList/details',
  },
  {
    name: '数据源管理',
    icon: 'smile',
    path: '/report/source',
    component: './report/SourceList',
  },
  {
    name: '数据源管理',
    icon: 'smile',
    path: '/report/source/form/:id',
    component: './report/SourceList/form',
  },
  {
    name: '数据视图管理',
    icon: 'smile',
    path: '/report/dataView',
    component: './report/DataViewList',
  },
  {
    name: '数据视图添加',
    icon: 'smile',
    path: '/report/dataView/form',
    component: './report/DataViewList/form',
  },
  {
    name: '表配置管理',
    icon: 'smile',
    path: '/report/tableConfig',
    component: './report/TableConfigList',
  },
  {
    name: '表配置编辑',
    icon: 'smile',
    path: '/report/tableConfig/form/:id',
    component: './report/TableConfigList/form',
  },
  {
    name: '待处理需求',
    icon: 'smile',
    path: '/demand/demand/:type',
    component: './demand/DemandList',
  },
  {
    name: '流转中需求',
    icon: 'smile',
    path: '/demand/demand/:type',
    component: './demand/DemandList',
  },
  {
    name: '已处理需求',
    icon: 'smile',
    path: '/demand/demand/:type',
    component: './demand/DemandList',
  },
  {
    name: '需求列表',
    icon: 'smile',
    path: '/demand/demand/:type',
    component: './demand/DemandList',
  },
  {
    name: '需求编辑',
    icon: 'smile',
    path: '/demand/demand/:type/edit/:id',
    component: './demand/DemandList/edit',
  },
  {
    name: '需求管理详情',
    icon: 'smile',
    path: '/demand/demand/:type/form/:id',
    component: './demand/DemandList/form',
  },
  {
    name: '需求管理详情',
    icon: 'smile',
    path: '/demand/waitDemand/1/form/:id',
    component: './demand/DemandList/form',
  },
  {
    name: '需求类型管理',
    icon: 'smile',
    path: '/demand/demandType',
    component: './demand/DemandTypeList',
  },
  {
    name: '需求统计',
    icon: 'smile',
    path: '/demand/statistics',
    component: './demand/DemandStatistics',
  },
  {
    name: '文档列表',
    icon: 'smile',
    path: '/doc/doc/:type',
    component: './doc/DocList',
  },
  {
    name: '文档编辑',
    icon: 'smile',
    path: '/doc/doc/:type/form/:id',
    component: './doc/DocList/form',
  },
  {
    name: '页面分析',
    icon: 'smile',
    path: '/analysis/pageAnalysis',
    component: './analysis/PageAnalysis',
  },
  {
    name: '页面参数分析',
    icon: 'smile',
    path: '/analysis/pageParamAnalysis',
    component: './analysis/PageParamAnalysis',
  },
  {
    name: '字典管理',
    icon: 'smile',
    path: '/sys/dict',
    component: './sys/DictList',
  },
  {
    name: '高级详情页',
    icon: 'smile',
    path: '/test/highdetails',
    component: './test/HighDetails',
  },
  {
    name: '基础详情页',
    icon: 'smile',
    path: '/test/details',
    component: './test/Details',
  },
  {
    name: '分步表单',
    icon: 'smile',
    path: '/test/formstep',
    component: './test/FormStep',
  },
  {
    name: '高级表单',
    icon: 'smile',
    path: '/test/formhigh',
    component: './test/FormHigh',
  },
  {
    name: '基础表单',
    icon: 'smile',
    path: '/test/form',
    component: './test/Form',
  },
  {
    name: '测试',
    icon: 'smile',
    path: '/test',
    component: './test/ListTableList',
  },
  {
    name: '测试',
    icon: 'smile',
    path: '/test66',
    component: './test/test',
  },
  {
    component: './404',
  },
];
